<template>
  <el-container>
    <el-aside width="200px">
      <el-menu default-active="/enterprise_home/info" router>
        <el-menu-item index="/enterprise_home/info">
          <el-icon>
            <OfficeBuilding/>
          </el-icon>
          <span>企业信息</span>
        </el-menu-item>
        <el-menu-item index="/enterprise_home/job">
          <el-icon>
            <Tickets/>
          </el-icon>
          <span>岗位信息</span>
        </el-menu-item>
        <el-menu-item index="/enterprise_home/check_resume">
          <el-icon>
            <FolderChecked/>
          </el-icon>
          <span>简历筛选</span>
        </el-menu-item>
        <el-menu-item @click="logout">
          <el-icon>
            <SwitchButton/>
          </el-icon>
          <span>退出</span>
        </el-menu-item>
      </el-menu>
    </el-aside>
    <el-main>
      <router-view></router-view>
    </el-main>
  </el-container>
</template>

<script lang="ts" setup>
import router from "@/router";

function logout() {
  localStorage.clear();
  router.push({path: "/login"})
}
</script>

<style scoped>

</style>